﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Sprint1.Models
{
    [MetadataType(typeof(AnswerMetaData))]
    public partial class Answer
    {
    }
    public class AnswerMetaData
    {
        
        [Required]
        public string Body { get; set; }
        [Required]
        public Question Question { get; set; }
        public Student Student { get; set; }
        public Instructor Instructor { get; set; }
        public bool isInstructor { get; set; }
        [Required]
        public DateTime Date { get; set; }     
    }
}